import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import LineString from '../components/lineString.vue'
import Trail from '../components/trail.vue'
import BigView from '../views/bigView.vue'
import Test from '../components/test.vue'
import View from '../views/view'
import Map3D from '../components/echarts3Dmap.vue'
import Trail1 from '../components/trail1.vue'
// import test from '../components/haha.vue'
Vue.use(VueRouter);

const routes = [
  // {
  //   path: "/",
  //   name: "test",
  //   component: test
  // },
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/lineString",
    name: "lineString",
    component: LineString
  },
  {
    path: "/trail",
    name: "trail",
    component: Trail
  },
  {
    path: "/bigView",
    name: "bigView",
    component: BigView
  },
  {
    path: "/test",
    name: "test",
    component: Test
  },
  {
    path: "/view",
    name: "view",
    component: View
  },
  {
    path: "/map3D",
    name: "map3D",
    component: Map3D
  },
  {
    path: "/Trail1",
    name: "Trail1",
    component: Trail1
  },
  
];

const router = new VueRouter({
  routes
});

export default router;
